package services

import (
	"ssims/dao"
	"ssims/models"
)

func GetAllEvent(event map[string]interface{}) (error, []models.Event, int64) {
	err, eventData, total := dao.GetAllEvent(event)
	return err, eventData, total
}
func GetAllEvent1(event map[string]interface{}) (error, []models.Event, int64) {
	err, eventData, total := dao.GetAllEvent1(event)
	return err, eventData, total
}
func DelEvent(id string) error {
	err := dao.DelEvent(id)
	return err
}

func UpdateEvent(event models.Event) error {
	err := dao.UpdateEvent(event)
	return err
}

func AddEvent(event models.Event) error {
	err := dao.AddEvent(event)
	return err
}
